package com.bluetrum.abmate.adapter;

import android.app.Activity;

import androidx.annotation.DrawableRes;
import androidx.annotation.StringRes;

public class DeviceFunctionUnit {

    @StringRes
    private final int textResId;

    @DrawableRes
    private final int imageResId;

    private final Class<? extends Activity> funcClass;

    DeviceFunctionUnit(@StringRes int textResId,
                       @DrawableRes final int imageResId,
                       final Class<? extends Activity> funcClass) {
        this.textResId = textResId;
        this.imageResId = imageResId;
        this.funcClass = funcClass;
    }

    @StringRes
    public int getTextResId() {
        return textResId;
    }

    @DrawableRes
    public int getImageResId() {
        return imageResId;
    }

    public Class<? extends Activity> getFuncClass() {
        return funcClass;
    }

}
